package com.cn.http.command.impl;

import cn.com.allunion.sms.pojo.Smsrecord;
import com.cn.http.command.DefaultSmsCommand;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.util.List;

/**
 * 骏逸(移动)短信发送命令
 * Created by YangJie on 2016/4/21.
 */
public class JunYiMobileSmsCommand extends DefaultSmsCommand {
    private final static Logger LOGGER = LoggerFactory.getLogger(JunYiMobileSmsCommand.class) ;

    public JunYiMobileSmsCommand(String joinNumMark) {
        super(joinNumMark);
    }

    @Override
    public void execute(List<Smsrecord> smsrecords) {
        if (LOGGER.isDebugEnabled()) {
            LOGGER.debug("---> 骏逸(移动)短信发送命令激活");
        }
        // 发送短信
        smsSendService.send(smsrecords) ;
    }
}
